package com.zhongshengnetwork.rightbe.dbmodel;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * Created by luojingxing on 2019/8/3.
 */
@Table(name = "letterdb")
public class LetterdbModel implements Serializable {

    @Column(name = "id")
    private int id;

    @Column(name = "msgId", isId = true)
    private String msgId;

    @Column(name = "userid")
    private String userid;

    @Column(name = "fromuserid")
    private String fromuserid;

    @Column(name = "header")
    private String header;

    @Column(name = "nickname")
    private String nickname;

    @Column(name = "content")
    private String content;

    @Column(name = "type")
    private int type;

    @Column(name = "time")
    private long time;

    @Column(name = "isCancel")
    private boolean isCancel;

    @Column(name = "isRead")
    private boolean isRead;

    @Column(name = "state")
    private int state;

    @Column(name = "extra")
    private String extra;

    @Column(name = "isFirst")
    private int isFirst;

    @Column(name = "unReadCount")
    private int unReadCount;

    @Column(name = "isSelf")
    private int isSelf;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getFromuserid() {
        return fromuserid;
    }

    public void setFromuserid(String fromuserid) {
        this.fromuserid = fromuserid;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public boolean isCancel() {
        return isCancel;
    }

    public void setCancel(boolean cancel) {
        isCancel = cancel;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public int getIsFirst() {
        return isFirst;
    }

    public void setIsFirst(int isFirst) {
        this.isFirst = isFirst;
    }

    public int getUnReadCount() {
        return unReadCount;
    }

    public void setUnReadCount(int unReadCount) {
        this.unReadCount = unReadCount;
    }

    public int getIsSelf() {
        return isSelf;
    }

    public void setIsSelf(int isSelf) {
        this.isSelf = isSelf;
    }
}
